package sss;

import java.util.Scanner;

/**
 * @author VernHe
 * @date 2021年08月12日 15:09
 */
public class Day_02_1 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        solution(n);
    }

    private static void solution(int n) {
        // 创建数组 0 ~ n
        String[] data = new String[n + 1];
        char c = (char) ('A' + n);
        String temp = String.valueOf(c);
        // 加空格
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < n; i++) {
            sb.append(" ");
        }
        data[n] = sb.toString() + temp;
        for (int i = n - 1; i >= 0; i--) {
            // 两边加的字符
            char newChar = (char) ('A' + i);
            // 输出的字符串
            temp = newChar + temp + newChar;
            // 前面加空格
            StringBuilder space = new StringBuilder();
            for (int j = 0; j < i; j++) {
                space.append(" ");
            }
            data[i] = space.toString() + temp;
        }
        for (String str : data) {
            System.out.println(str);
        }
        for (int i = n - 1; i >= 0; i--) {
            System.out.println(data[i]);
        }

    }
}
